package Job202213;

import java.util.Arrays;

public class Job1 {
    public static void main(String[] args) {
        //1. 要求实现字符逆序。
        String s="qwerijava345好孩子";
        StringBuilder s1=new StringBuilder(s);
        System.out.println(s1.reverse());
        String t= "";
        String p="";
        char[] c=s.toCharArray();
        for (int i = c.length-1; i >=0; i--) {
             t=t+c[i];
        }
        for (int i = 0; i < s.length(); i++) {
            String s2=s.substring(i,i+1);
             p=s2+p;
        }
        System.out.println(t);
        System.out.println(p);
    }
}
